﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Book
    {
        private int BookNum;
        private string BookName;
        private int Money;
        private string Press;
        private string Author;

        public int BookNum1 { get => BookNum; set => BookNum = value; }
        public string BookName1 { get => BookName; set => BookName = value; }
        public string Press1 { get => Press; set => Press = value; }
        public string Author1 { get => Author; set => Author = value; }
        public int Money1 { get => Money; set => Money = value; }
        public Book(int BookNum,string BookName,int Money,string Press,string Author)
        {
            this.BookNum = BookNum;
            this.BookName = BookName;
            this.Press = Press;
            this.Author = Author;
            this.Money = Money;
          if (this.Money <0)
          {
            Money = 0;
          }
        }
        public void will1()
        {
            Console.WriteLine("书的编号是:{0}，书的名字是:{1}，价格是:{2}，出版社是:{3}，作者信息是:{4}", this.BookNum, this.BookName, this.Money, this.Press, this.Author);
        }
    }
}

